<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>SEARCHES</title>
<script type="text/javascript" src="js/collapsible.js"></script>

<script type="text/javascript">

var previousTop = null;
var previousRows = null;
var previousCols = null;
var previousWindowCol = null;

//var rowDefs = ['20,*,*,*', '20,80%,*,*', '20,*,80%,*', '20,*,*,80%'];
//var colDefs = ['80%,*,*', '*,80%,2*', '*,2*,80%'];
var rowDefs = ['20,*,*,*', '20,3*,*,*', '20,*,3*,*', '20,*,*,3*'];
var minRowDefs = ['20,*,*,*', '20,*,2*,2*', '20,2*,*,2*', '20,2*,2*,*'];

var autoEnlarge = true;

var itemsWindow = opener;

<%--
<% String itemsThere = request.getParameter("items");
   if (itemsThere == null || itemsThere.equals("")) {
%> var midWidth = screen.availWidth / 2;
   self.moveTo(0, 0);
   self.resizeTo(midWidth, screen.availHeight);
   /*if (itemsWindow == null || itemsWindow.closed) {
	//  var itemsWindow = window.open('items.jsp','ITEMS',
	//	'left='+midWidth+',top=0,width='+midWidth+',height='+(screen.availHeight-20)+',location=0,directories=0,toolbar=1,menubar=1,resizable=1');
	//}
	*/
<% } else {
%> var itemsWindow = opener;
<% } %>
--%>

function normalFrames(aFrame) {
    document.body.rows = rowDefs[0];
	for (var i=1; i<rowDefs.length; i++) {
		frames[i].document.body.cols = frames[i].colDefs[0];
	}
}

function focusFrame(aFrame) {
  if (autoEnlarge) {
	var aWindowCol = aFrame.parent.parent;
	var frameColPos = -1;
	for (var i=0; i<rowDefs.length; i++) {
	  if (aWindowCol.frames[i] == aFrame.parent) {
	    frameColPos = i;
		break;
	  }
	}
	var frameRowPos = -1;
	for (var i=0; i<=rowDefs.length; i++) {
	  if (frames[i] == aWindowCol) {
	    frameRowPos = i;
		break;
	  }
	}
//	alert ('row='+frameRowPos+', col='+frameColPos);
	if (frameColPos >= 0 && frameRowPos > 0) {
		var newRows = rowDefs[frameRowPos];
		var newCols = aWindowCol.colDefs[frameColPos];
		if (previousRows != newRows || previousCols != newCols) {
			document.body.rows = newRows;
		    if (previousWindowCol != null && previousWindowCol != aWindowCol) {
				previousWindowCol.document.body.cols = previousCols;
			}
			//if (frameRowPos < 3) { // pas pour la fenetre SAQ!
				aWindowCol.document.body.cols = newCols;
			//}
			previousRows = newRows;
			previousCols = newCols;
			previousWindowCol = aWindowCol;
		}
	}
  }
  var topDocument = aFrame.parent.frames[0].document;
  if (topDocument != null) {
	var title = topDocument.getElementById('titledisplayed');
	if (title != null) {
		title.innerHTML = aFrame.document.title;
	}
  
	if (previousTop != null) {
		if (previousTop.className.substr(0,4)=='last') {
			previousTop.className = previousTop.className.substring(4);
		}
	}

	var topBody = topDocument.getElementById('top');
	if (topBody != null) {
		if (topBody.className.substr(0,4)!='last') {
			topBody.className = 'last'+topBody.className;
		}
   }
   previousTop = topBody;
  }
  self.focus();
}

			function changeFont(bar,content,requested) {
		        var fnt_normal = bar.document.getElementById('fnt_normal');
		        var fnt_bigger = bar.document.getElementById('fnt_bigger');
		        var fnt_biggest = bar.document.getElementById('fnt_biggest');
		        
		        fnt_normal.style.background = 'transparent';
		        fnt_bigger.style.background = 'transparent';
		        fnt_biggest.style.background = 'transparent';
		        
		        switch (requested) {
		            case 'normal': 
		                content.document.body.style.fontSize = '12px'; 
		                content.parent.fontSize = 'normal';
		                fnt_normal.style.background = '#ccc';  
		                break;
		            case 'bigger': 
		                content.document.body.style.fontSize = '14px'; 
						content.parent.fontSize = 'bigger'; 
		                fnt_bigger.style.background = '#ccc';  
		                break;
		            case 'biggest': 
		                content.document.body.style.fontSize = '16px'; 
		                content.parent.fontSize = 'biggest';
		                fnt_biggest.style.background = '#ccc'; 
		                break;
		        }
		    }
</script>
</head>
<frameset rows="20,*,*,*" frameborder="yes">
<frame src="searchbanner.jsp" name="askosi_banner"/>
<frame src="resultcols.jsp?line=1" name="applications_results"/>
<frame src="askosicols.jsp?line=2" name="applications_askosi"/>
<frame src="dspacecols.jsp?line=3&name=wind&root=/wind/" name="applications_WindMusic"/>
<!-frame src="saqcols.jsp" name="applications_SAQ"/-->
</frameset>
</html>
